package selectCourse;
public class Teacher extends Person {
    String lesson;
    public Teacher(int number, String name, String sex, String lesson) {
        super(number, name, sex);
        this.number = number;
        this.name = name;
        this.sex = sex;
        this.lesson = lesson;
    }
    public String toString() {
        return "Teacher(陈增强):" + "1" + number + "陈增强" + name + "男" + sex + " python" + lesson;
    }

}